{php include wl_template('common/header');}
<ul class="nav nav-tabs" id="myTab">
    <li class="active"><a href="#tab_basic">海报设置</a></li>
</ul>
<div class="app-content">
    <div class="app-form">
        <form action="" method="post" class="form-horizontal form form-validate">
            <div class="tab-content">
                <div class="tab-pane active" id="tab_basic">
                    <div class="form-group-title">海报设置</div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">虚拟人数</label>
                        <div class="col-sm-9">
                            <div class="input-group">
                                <input type="text" name="settings[number]" class="form-control" value="{$settings['number']}" min="0" digits="true">
                                <span class="input-group-addon">人</span>
                            </div>
                            <div class="help-block">我是第几个参与者，用户生成时在此基础上累加。</div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">公众号关键字</label>
                        <div class="col-sm-9">
                            <input type="text" name="settings[keywords]" class="form-control" value="{$settings['keywords']}" required>
                            <div class="help-block">可以通过关键字生成自己的海报。</div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">首次生成回复内容</label>
                        <div class="col-sm-9">
                            <input type="text" name="settings[reply]" class="form-control" value="{$settings['reply']}">
                            <div class="help-block">默认回复内容为：[昵称]感谢参与！您是第[人数]个倡议者，保存下列图片，转发给朋友们，提高全民防疫意识，从我做起！</div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">名字字体颜色</label>
                        <div class="col-sm-9">
                            {php echo tpl_form_field_color('settings[name_color]', $settings['name_color']);}
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">数量字体颜色</label>
                        <div class="col-sm-9">
                            {php echo tpl_form_field_color('settings[num_color]', $settings['num_color']);}
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">海报背景</label>
                        <div class="col-sm-9">
                            {php echo attachment_select('settings[bg]', $settings['bg'])}
                            <span class="help-block">不上传则使用默认背景，建议背景大小640*1136，<a href="{php echo URL_H5_RESOURCE . '/poster/subposterbg.jpg';}" target="_blank">推荐示例下载</a></span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label"></label>
                <div class="col-sm-9">
                    <input type="submit" name="submit" value="提交" class="btn btn-primary min-width" />
                    <input type="hidden" name="token" value="{$_W['token']}" />
                </div>
            </div>
        </form>
    </div>
</div>
{php include wl_template('common/footer');}